package org.esrichina.gistech.config;

import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.loader.json.JsonLoader;


/**
 * @see 配置信息
 * @author xusd
 *
 */
public class Config {
	
	
	private UploadFileConfig uploadfileconfig;
	
	private UploadFileConfig uploadProjectAttachmentConfig;
	
	private int attachpicturesheet;

	public int getAttachpicturesheet() {
		return attachpicturesheet;
	}

	public void setAttachpicturesheet(int attachpicturesheet) {
		this.attachpicturesheet = attachpicturesheet;
	}
	
	//地块服务地址
	private String  siteserviceurl;

	private String excelmacro;
	
	private String openOfficePath;
	
	private String projectAttachmentsRootPath;
	
	public String getExcelmacro() {
		return excelmacro;
	}

	public void setExcelmacro(String excelmacro) {
		this.excelmacro = excelmacro;
	}

	public String getOpenOfficePath() {
		return openOfficePath;
	}

	public void setOpenOfficePath(String openOfficePath) {
		this.openOfficePath = openOfficePath;
	}
	
	public String getSiteserviceurl() {
		return siteserviceurl;
	}


	public void setSiteserviceurl(String siteserviceurl) {
		this.siteserviceurl = siteserviceurl;
	}

	
	public static Config  getInstance(){
		Ioc ioc = new NutIoc(new JsonLoader("/conf/sddc.js"));
		Config conf = ioc.get(Config.class,"Config");
		return conf;
	}
	
	public UploadFileConfig getUploadfileconfig() {
		return uploadfileconfig;
	}


	public void setUploadfileconfig(UploadFileConfig uploadfileconfig) {
		this.uploadfileconfig = uploadfileconfig;
	}
	
	public UploadFileConfig getUploadProjectAttachmentConfig() {
		return uploadProjectAttachmentConfig;
	}

	public void setUploadProjectAttachmentConfig(UploadFileConfig uploadProjectAttachmentConfig) {
		this.uploadProjectAttachmentConfig = uploadProjectAttachmentConfig;
	}

	public String getProjectAttachmentsRootPath() {
		return projectAttachmentsRootPath;
	}

	public void setProjectAttachmentsRootPath(String projectAttachmentsRootPath) {
		this.projectAttachmentsRootPath = projectAttachmentsRootPath;
	}
}
